var t = require;
var e = module;
var o = exports;
var n =
    (this && this.__extends) ||
    (function () {
        var t = function (e, o) {
            return (t =
                Object.setPrototypeOf ||
                ({__proto__: []} instanceof Array &&
                    function (t, e) {
                        t.__proto__ = e;
                    }) ||
                function (t, e) {
                    for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
                })(e, o);
        };
        return function (e, o) {
            function n() {
                this.constructor = e;
            }
            t(e, o), (e.prototype = null === o ? Object.create(o) : ((n.prototype = o.prototype), new n()));
        };
    })();
Object.defineProperty(o, "__esModule", {value: !0});
var r = t("ConfS"),
    a = t("locales"),
    i = t("AdCtrl"),
    s = t("Platforms"),
    c = (function (t) {
        function e(e, o, n) {
            var r = t.call(this) || this;
            return r.init(e, null, n), (r.ad = o), r;
        }
        return (
            n(e, t),
            (e.prototype.可显示 = function () {
                return !0;
            }),
            (e.prototype.callback = function (t) {
                var e = this._callback;
                (this._callback = null), e && e(t);
            }),
            (e.prototype.show = function (t, e) {
                (this.args = t), (this._callback = e), this.ad.show();
            }),
            (e.prototype.close = function (t) {
                this.callback(t), this.onClose && this.onClose(t);
            }),
            (e.prototype.error = function () {
                s.default.platformCtrl.toast(
                    a.locales.getText([
                        r.DatasManager.视频已用尽2CN,
                        r.DatasManager.视频已用尽2CN,
                        r.DatasManager.视频已用尽2EN
                    ])
                ),
                    this.args && s.default.platformCtrl.dd_videoError(this.args, this.adId),
                    this.callback(!1);
            }),
            e
        );
    })(i.default);
o.default = c;
